 /* 
 * File:   cTexturizedObject.cpp
 * Author: josep
 * 
 * Created on 11 / desembre / 2010, 22:46
 */

#include "cTexturizedObject.h"

cTexturizedObject::cTexturizedObject() {
}

cTexturizedObject::cTexturizedObject(const cTexturizedObject& orig) {
    this->Texture=orig.Texture;
    TextureWidth=orig.TextureWidth;
    TextureHeight=orig.TextureHeight;
}

cTexturizedObject::~cTexturizedObject() {
}

void cTexturizedObject::Init(cTexture *texture){
    SetTexture(texture);
    cTexturizedObject::Init();
}

void cTexturizedObject::Init(){
    Texture->GetSize(&TextureWidth, &TextureHeight);
}

void cTexturizedObject::SetTextureHeight(int TextureHeight) {
    this->TextureHeight = TextureHeight;
}
int cTexturizedObject::GetTextureHeight()  {
    return TextureHeight;
}
void cTexturizedObject::SetTextureWidth(int TextureWidth) {
    this->TextureWidth = TextureWidth;
}
int cTexturizedObject::GetTextureWidth()  {
    return TextureWidth;
}
void cTexturizedObject::SetTexture(cTexture* Texture) {
    this->Texture = Texture;
}
cTexture* cTexturizedObject::GetTexture()  {
    return Texture;
}



